package io.qingke.demo1;

import java.io.FileWriter;
import java.io.IOException;

public class IOIoexception {
	public static void main(String[] args) {
		FileWriter fw =null;
		try {
			fw = new FileWriter("D:/nihao.txt");
			fw.write("dsfsdf");
			
		} catch (IOException e) {
			System.out.println(e.toString());
		}finally{
			try {
				if(fw!=null){
					fw.close();
				}
			} catch (IOException e) {
				System.out.println(e.toString());
			}
		}
	}
}
